package com.fanghaoran.notes.service;

import com.fanghaoran.notes.bean.MyResult;

import java.sql.SQLException;

/**
 * @Author: win11
 * @Date: 2023/04/24/11:49
 * @Description: 评价业务service接口
 */
public interface EvaluationService {
    /**
     * 评价功能service层
     * @param iid 订单项id
     * @return 返回
     * @throws Exception 异常
     */
    MyResult showEvaluation(int iid) throws Exception;

    /**
     * 添加评论表
     * @param uid 用户id
     * @param iid 订单项id
     * @param score 评分
     * @param pid 商品id
     * @param comment 评论
     * @return 返回添加结果
     * @throws Exception 异常
     */
    MyResult addEvaluation(int uid,int iid, int score,int pid, String comment) throws Exception;
}
